const equipment = {
    //分为2层，一级的菜单名称和二级的权限列表
    work: ""
}
const dataComponent =
    // 查询条件dataModel
    [{
            type: 'input',
            label: '字段ID',
            model: 'title',
            keyUpEnter: 'handleFilter',
            span: 6
        },
        {
            type: 'input',
            label: '字段名称',
            model: 'name',
            keyUpEnter: 'handleFilter',
            span: 6
        },
        {
            type: 'select',
            label: '字段类型',
            model: 'importance',
            option: [1, 2, 3],
            span: 6

        },
        {
            type: 'select',
            label: '字段规则',
            model: 'importance',
            option: [1, 2, 3],
            span: 6

        },
        {
            type: 'select',
            label: '提示语',
            model: 'importance',
            option: [1, 2, 3],
            span: 6

        },
        {
            type: 'select',
            label: '必填/选填',
            model: 'importance',
            option: [1, 2, 3],
            span: 6

        },
        {
            type: 'select',
            label: '操作',
            model: 'importance',
            option: [1, 2, 3],
            span: 6

        }
    ]
const tableColumn = [{
        key: 'id',
        event: null,
        label: "字段ID"
    }, {
        key: 'personId',
        event: null,
        label: "字段名称"

    }, {
        key: 'personName',
        event: null,
        label: "字段类型"

    }, {
        key: 'rule',
        event: null,
        label: "字段规则"
    }, {
        key: 'placeholder',
        event: null,
        label: "提示语"

    }, {
        key: 'isBasic',
        event: null,
        label: "选填/必填"

    }, {
        key: 'operate',
        event: null,
        label: "操作"

    }]
    // 搜索相关字段
const dataModel = {
    page: 1,
    limit: 20,
    importance: 1,
    title: "1",
    type: 1,
    sort: '+id',
    date: 1,
    startDate: 1,
    endDate: 1
}

const troubledInfo = {
    title: '故障配置',
    formModel: {
        page: 1,
        limit: 20,
        importance: undefined,
        title: undefined,
        type: undefined,
        sort: '+id',
        date: undefined,
        startDate: undefined,
        endDate: undefined
    },
    formComponent: [{
        type: 'textArea',
        label: '故障种类配置',
        model: 'title',
        keyUpEnter: 'handleFilter',
        placeholder: "多个故障种类用英文逗号分隔",
        rules: [{ required: true, message: '故障种类配置', trigger: 'blur' }]
    }, {
        type: 'textArea',
        label: '故障级别配置',
        model: 'importance',
        keyUpEnter: 'handleFilter',
        placeholder: "多个故障种类用英文逗号分隔",
        rules: [{ required: true, message: '故障种类配置', trigger: 'blur' }]
    }]
}
const repairedInfo = {
    title: '维修配置',
    repairedShowForm: [{
        title: "维修配置",
        content: [{
            label: "故障种类配置",
            value: "故障种类配置数据"
        }, {
            label: "故障级别配置",
            value: "故障种类配置数据"
        }]
    }],
    formModel: {
        page: 1,
        limit: 20,
        importance: undefined,
        title: undefined,
        type: undefined,
        sort: '+id',
        date: undefined,
        startDate: undefined,
        endDate: undefined
    },
    formComponent: [{
        type: 'input',
        label: '维修员接单上限',
        model: 'title',
        keyUpEnter: 'handleFilter',
        placeholder: "多个故障种类用英文逗号分隔",
        rules: [{ required: true, message: '故障种类配置', trigger: 'blur' }]
    }]
}

//整理后的表单配置
const troubledForm = [{
    formName: "故障种类配置",
    formRef: 'table3', //表单ref
    formModel: troubledInfo.formModel, //表单model
    formComponent: troubledInfo.formComponent,
    formName: troubledInfo.title, //表单标题
    formStyle: "box-margin-card"
}]
const repairedForm = [{
    formName: "维修配置",
    formRef: 'table3', //表单ref
    formModel: repairedInfo.formModel, //表单model
    formComponent: repairedInfo.formComponent,
    formName: repairedInfo.title, //表单标题
    formStyle: "box-margin-card"
}]
const data = {
    equipment: equipment,
    tableColumn: tableColumn,
    dataComponent: dataComponent,
    dataModel: dataModel,
    troubledForm: troubledForm,
    repairedForm: repairedForm
}
export default data